package top.infopub.mgr.bpa.service.impl;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.bpa.dao.OtherCotDetailDao;
import top.infopub.mgr.bpa.domain.OtherCotDetailAndSubDomain;
import top.infopub.model.bpa.OtherCotDetail;
import top.infopub.mgr.bpa.service.OtherCotDetailService;

@Service
public class OtherCotDetailServiceImpl extends GenericServiceImpl<OtherCotDetail, String> implements
		OtherCotDetailService {

	@Autowired
	private OtherCotDetailDao otherCotDetailDao;
	
	@Override
	public GenericDao<OtherCotDetail, String> getDao() {
		return otherCotDetailDao;
	}

    @Override
    public List<OtherCotDetailAndSubDomain> selectDetailAndSub(String otherCotId, String feeSmallType1,
        String feeSmallType2) {
        return otherCotDetailDao.selectDetailAndSub(otherCotId,feeSmallType1,feeSmallType2);
    }

    @Override
    public BigDecimal selectAddupAmountBySubNameAndRefId(String subName, String refId,
                                                         String typeName) {
        return otherCotDetailDao.selectAddupAmountBySubNameAndRefId(subName, refId, typeName);
    }

}